#ifndef __MCGRIPMOVER_H_
#define __MCGRIPMOVER_H_

#include <MCMouseReceiver.h>
#include <ICanvas.h>

class MCGripMover : public MCMouseReceiver
{
public:

    MCGripMover(ICanvas *presenter);

    void onMouseDown(IMouseArgs &args) override;
    void onMouseUp(IMouseArgs &args) override;
    void onMouseMove(IMouseArgs &args) override;

private:

    ICanvas *_presenter;
    IGripPoint *_currentGrip;
    
    MCPoint2D _startDraggingPos;
    bool _isDraggingValid;

};

#endif // !__MCGRIPMOVER_H_
